﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title>正在加载请稍候...</title>

    <script src="../Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
    <!--表单样式-->
    <link href="../Admin/CSS/FoolFrmBody.css" rel="stylesheet" />
    <link href="../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
    <!-- layui -->
    <link href="../Scripts/layui/layui/css/layui.css" rel="stylesheet" />
    <link href="../Scripts/layui/style/admin.css" rel="stylesheet" />
    <link href="../Scripts/layui/layui/css/autocomplete.css" rel="stylesheet" />
    <script src="../Scripts/layui/layui/layui.js" type="text/javascript"></script>
    <script src="../Scripts/layui/LayuiDialog.js" type="text/javascript"></script>
    <!--通用的JS-->
    <script src="../Scripts/config.js" type="text/javascript"></script>
    <script src="../Comm/Gener.js" type="text/javascript"></script>
    <script src="../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../CCForm/FrmEnd.js?ver=1" type="text/javascript"></script>
    <script src="../Comm/JScript.js" type="text/javascript"></script>

    <!--用户可配置的文件，内容可修改-->
    <script src="../../DataUser/SFTable.js" type="text/javascript"></script>
    <script src="../../DataUser/JSLibData/CommonShowConfig.js"></script>
    <script src="../../DataUser/JSLibData/MyFlowPublic.js?v=20200609001" type="text/javascript"></script>
    <script src="../../DataUser/JSLibData/CCFormRef.js" type="text/javascript"></script>
    <script src="../Scripts/download.js"></script>

    <script type="text/javascript" src="../CCForm/FrmGener.js"></script>


    <script src="MyFrmGener.js" type="text/javascript"></script>
    <script id="view" type="text/html">
        <div class="layui-btn-container">
            {{#  layui.each(d, function(index, item){ }}
            <button type="button" class="layui-btn layui-btn-sm" name="{{item.BtnID}}" {{# if(item.BtnID=="Save"|| item.BtnID=="Submit"){}}= lay-submit="" lay-filter="{{item.BtnID}}" {{#  }; }}= data-type="{{=item.Type}}"><i class="iconfont icon-{{item.Icon}}"></i>{{item.BtnLab}}</button>
            {{#  }); }}
        </div>
    </script>
    <style type="text/css">
        .iconfont {
            padding-right: 3px;
        }

        .layui-btn-primary {
            border-radius: 6px !important
        }

        .input-icon {
            position: absolute;
            left: calc(100% - 40px);
            top: 1px;
            width: 38px;
            line-height: 36px;
            text-align: center;
            color: #d2d2d2;
        }

        .ccdate {
            padding-right: 40px;
        }

        .layui-row {
            margin-bottom: 3px;
        }

        .layui-form-label {
            width: auto;
        }
        input[type=checkbox]:disabled {
            display: none !important;
        }
    </style>
    <script type="text/javascript">
        var isSaveAfterCloseOfBill = getConfigByKey("IsSaveAfterCloseOfBill", false); 
        $(function () {
            var workID = GetQueryString("WorkID");
            workID = workID == null || workID == undefined || workID == "" ? 0 : workID;
            if (workID == 0) {
                //生成WorkID
                var handler = new HttpHandler("BP.CCBill.WF_CCBill");
                handler.AddUrlData();
                var workID = handler.DoMethodReturnString("MyBill_CreateBlankBillID");

                if (workID.indexOf('err@') > -1) {
                    layer.alert(workID);
                    return;
                }
                var url = GetHrefUrl();
                url = replaceParamVal(url, "WorkID", workID);
                SetHref(url);
            }
            ToolBar_Init(1);
        })
    </script>

</head>
<body style="background-color:#f2f2f2">
    <div id="MyBill" class="layui-layout layui-layout-admin">
        <form id="divCCForm" enctype="multipart/form-data" method="post" class="layui-form" autocomplete=off>
            <!--头部按钮-->
            <div class="layui-header" style="background-color: white">
                <div class="layui-btn-container" id="ToolBar" style="margin:10px 10px 0px 10px"></div>
            </div>
            <!--表单内部信息-->
            <div class="layui-fluid" style="padding-top:65px">
                <div class="layui-row layui-col-space15" id="ContentDiv">
                    <!-- 内容主体区域 -->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-body">
                                <div id="CCForm">
                                    <!--加载表单的信息-->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</body>
</html>
